CC=g++
LFLAGS= -Wall -shared -fPIC
CFLAGS= -Wall -c -g
SRC=charset_convert.cpp file_helper.cpp partition_helper.cpp log_helper.cpp
OBJ=libutility.so
TGT=$(SRC:.cpp=.o)
LIBS = -lblkid

all: $(OBJ)

$(OBJ) : $(TGT)
	$(CC) -o $(OBJ) $^ $(LFLAGS) $(LIBS)

$(TGT) : $(SRC)
	$(CC) $(CFLAGS) $(SRC)

clean:
	rm -f *.o $(OBJ) *~